#ifndef _LOGIN_SERVER_H__
#define _LOGIN_SERVER_H__

//#define LISTEN_PORT  (12345)
//#define MAX_CLIENT   (8096)

#define SERVER_TYPE_MAP  0x01000000

#define MAP_SERVER_NOVICE 0x00010000

/*
typedef struct logic_server_t
{
	unsigned int server_id;
	struct nd_tcp_node conn_node;
	struct logic_server_t *north;
	struct logic_server_t *south;
	struct logic_server_t *west;
	struct logic_server_t *east;	
} logic_server;
*/	
typedef struct ls_user_t
{
	NDINT32 id;
	NDINT32 mapserver_index;
	struct nd_client_map *session;
} ls_user_t;

#define MAX_ADDR_LEN 128
typedef struct _server_base_t
{
	NDUINT32 server_id;
	NDINT8 addr[MAX_ADDR_LEN];
	NDUINT16 port;
	nd_handle conn_node;
} server_base;

typedef struct _map_server_t
{
	server_base base;
	struct _map_server_t *north;
	struct _map_server_t *south;
	struct _map_server_t *west;
	struct _map_server_t *east;	
} map_server;

#endif

